package com.dongan.controller;


import com.dongan.service.ConfigFileKindService;
import com.dongan.service.impl.ConfigFileKindServiceImpl;
import com.dongan.utils.ResultResponseUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 配置文件类型 前端控制器
 * </p>
 *
 * @author longTao
 * @since 2021-06-15
 */
@RestController
@RequestMapping("/config-file-kind")
@CrossOrigin
public class ConfigFileKindController {

    @Autowired
    private ConfigFileKindService configFileKindService;

    /**
     * 显示种类
     * @return
     */
    @GetMapping(value = "/displayType")
    public ResultResponseUtil displayType(){
        return new ResultResponseUtil(configFileKindService.queryFileKind());
    }
}

